function [maturity_array, zero_coupon_rate, time, fractionS0, volatility] = getData(input_file)
   %Load file we added in MATLAB
   if or(strcmp(input_file,'Default'),strcmp(input_file,'default'))
        load temp.mat
   else
       %Reading new file
        [zero_coupon_rate, maturity] = xlsread(input_file);
        temp = xlsread(input_file,2);
        maturity = maturity(2:end,1);
        fractionS0 = temp(1,2:end);
        time = temp(2:end,1);
        volatility = temp(2:end, 2:end);
        
        maturity_array = zeros(1,length(maturity));
        for i=1:length(maturity_array)
            switch maturity{i}(length(maturity{i}))
                case {'N','D'}
                    if(maturity{i}(1) ~= 'O')
                        maturity_array(i) = str2double(maturity{i}(1:length(maturity{i})-1));
                    end
                case {'M'}
                    maturity_array(i) = str2double(maturity{i}(1:length(maturity{i})-1))*30;
                otherwise
                    maturity_array(i) = str2double(maturity{i}(1:length(maturity{i})-1))*365;
            end
        end
        %Change time to day
        time = time*365;
        save('temp.mat','fractionS0','maturity_array','time','volatility','zero_coupon_rate');
   end
   
   